import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Router from 'vue-router'
import VueAxios from 'vue-axios'
import VCharts from 'v-charts'
import Vant from  'vant'
import 'vant/lib/index.css';
import RouterTab from 'vue-router-tab'
import 'vue-router-tab/dist/lib/vue-router-tab.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css'
import qs from 'qs';
Vue.prototype.qs = qs;
import Fragment from 'vue-fragment'
Vue.use(Fragment.Plugin)
var axios = require('axios')
//axios.defaults.baseURL = 'http://localhost:8082'
// 全局注册，之后可在其他组件中通过 this.$axios 发送数据
Vue.prototype.$axios = axios
import atui from 'atui'
import 'atui/dist/greater-blue.css'
Vue.use(VCharts)
Vue.use(Vant)
Vue.use(RouterTab)
Vue.use(atui)
Vue.use(router)
Vue.use(ElementUI)
Vue.use(Router)
Vue.use(VueAxios, axios)
Vue.config.productionTip = false

new Vue({
  el: '#app',
  render: h => h(App),
  router,
  components: { App },
  template: '<App/>',
}).$mount('#app')
